package com.kang.util;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class UpAndDownloadUtil implements InitializingBean {

    @Value("${download.url}")
    private String downLoad;

    @Value("${upload.url}")
    private String upload;

    public static String UPLOAD_URL;
    public static String DOWNLOAD_URL;

    @Override
    public void afterPropertiesSet() throws Exception {
        UPLOAD_URL = upload;
        DOWNLOAD_URL = downLoad;
    }
}
